<div class="modal-dialog" role="document">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="exampleModalLabel">修改商圈</h4>
        </div>
        <form class="form-horizontal" style="margin:4%;" id="modalForm">
            <input type="hidden" value="{$tradeArea.id}" name="id" />
            <div class="form-group">
                <label for="recipient-name" class="control-label col-sm-2">商圈名称:</label>
                <div class="col-sm-10">
                	<input type="text" class="form-control" name="name" value="{$tradeArea.name}">
                </div>
            </div>
            <div class="form-group">
                <label for="recipient-name" class="control-label col-sm-2">简介:</label>
                <div class="col-sm-10">
                    <textarea class="form-control" rows="3" name="introduce">{$tradeArea.introduce}</textarea>
                </div>
            </div>
            <div class="form-group">
                <label for="message-text" class="control-label col-sm-2">状态:</label>
                <div class="col-sm-3">
	                <select class="form-control" name="status">
	                	<option value="1" <if condition="$tradeArea.status eq 1">selected</if>>有效</option>
	                	<option value="0" <if condition="$tradeArea.status eq 0">selected</if>>无效</option>
	                </select>
                </div>
            </div>
        </form>
        <div class="modal-footer">
            <button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
            <button type="button" id="area_save" class="btn btn-primary">保存</button>
        </div>
    </div>
</div>
<script type="text/javascript">
    $("#area_save").click(function(){
        common.ajax("{:U('Admin/Org/modifyTradeArea')}",$("#modalForm").serialize(),function(){
            $("#commonModal").modal('toggle');
            common.reload();
        });
    });
</script>